package cp2004_2;

import java.util.Scanner;
import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException {
        System.out.println("Hello, We will show our all of products' information for you");
        Mune();
        Scanner in = new Scanner(System.in);
        String c = in.nextLine();
        while (true) {
            if (c.equals("a")) {
                ProductInfo p = new ProductInfo();
                p.ShowProList();
                Mune();
                c = in.nextLine();
            }
            if (c.equals("b")) {
                InventoryInfo i = new InventoryInfo();
                i.ShowInvList();
                Mune();
                c = in.nextLine();
            }
            if (c.equals("c")) {
                ProductList l = new ProductList();
                l.ShowItemList();
                Mune();
                c = in.nextLine();
            }
            if (c.equals("d")) {
                System.out.println("Goodbye~!");
                System.exit(0);
            }
        }
    }

    public static void Mune() {
        System.out.println("Pleas watch our mune list");
        System.out.println("a. The intruduction of our Products");
        System.out.println("b. The intruduction of all the Inventory");
        System.out.println("c. The  list of products which we have");
        System.out.println("d. Exit");
        System.out.println("Please choose one:");
    }
}
